package org.javaboy.http_header_demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }
    @GetMapping("/http")
    public String http() {
        return "hello http";
    }
    @GetMapping("/https")
    public String https() {
        return "hello https";
    }

    @PostMapping("/report")
    public void report() {
        System.out.println("report");
    }
}
